import json

from config import  BASE_DIR


def build_data(filename):
    with open(BASE_DIR+f"/data/{filename}",encoding='utf-8') as f:
        res=json.load(f)

        list=[]

        for x in res:
            x.pop('desc')
            list.append(tuple(x.values()))
        return list

if __name__ == '__main__':
    build_data("add.json")

